package database.fd;

import java.io.Serializable;

import database.attset.SetAttribute;

public class FunctionalDependency implements Serializable {
	public SetAttribute left;
	public SetAttribute right;

    public SetAttribute getLeft() {
        return left;
    }

    public void setLeft(SetAttribute left) {
        this.left = left;
    }

    public SetAttribute getRight() {
        return right;
    }

    public void setRight(SetAttribute right) {
        this.right = right;
    }
	
	public FunctionalDependency clone(){
		FunctionalDependency returnFd = new FunctionalDependency();
		returnFd.left = (SetAttribute)left.clone();
		returnFd.right = (SetAttribute)right.clone();
		return returnFd;
	}
	
	
	public FunctionalDependency() {
		left = new SetAttribute();
		right = new SetAttribute();
	}
	public void printFd() {
		left.printSetAttribute(); System.out.print("->"); right.printSetAttribute();
                System.out.print("\n");
	}
}
